<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>内容列表</title>
<import type='css' file="css.main" />
<load href="__PUBLIC__/js/jquery-1.9.1.min.js" />
<import type='js' file="js.main" />
</head>

<body>
<style type="text/css">
.seoption{padding-top:10px; text-align:center;}
.seoption select{border:solid 1px #ccc; border-radius:3px; height:30px; line-height:24px; border-right:none;}
button.okglian{display:block; clear:both; width:70px; margin:0px auto; margin-top:6px; background:none; background-color:#ff5454; color:#fff; border:none; border-radius:5px; line-height:22px; cursor:pointer;}
</style>
<div class="main-frame">
	<div class="position">华人码 > 内容列表</div>
	<div class="table-list">
	 <table width="100%" border="1" cellspacing="0" cellpadding="0" class="indextable">
		    <tr class="th-bg">
		      <th width="5%">ID</th>
		      <th width="30%">标题</th>
		      <th width="6%">属性</th>
		      <th width="8%">添加时间</th>
		      <th width="25%">简介</th>
		      <th width="5%">状态</th>
		      <th width="8%">操作</th>
	        </tr>
	        <volist name='filmlist' id='v' empty="$empty">
		    <tr class="tr-line">
		      <td>{$v.id}</td>
		      <td style="text-align:left; padding-left:6px;" class="guanlian"><a href="http://e.hrtv.cn/ehrtv/moviediary/filmlist?id={$v.id}&domain=#domainid#&bottomType=7" target="_blank">{$v.title}</a></td>
		      <td><if condition="$v['isc'] eq 1">推荐</if></td>
		      <td style="font-size:12px;">{$v.add_time}</td>
		      <td><div style="text-align:left; height:36px; line-height:20px; overflow:hidden; padding:0px 6px; font-size:12px; color:#666;">{$v.content}</div></td>
		      <td><if condition="$v['isdel'] eq 1"><span class="tclose" title="已删除"></span><else /><span class="topen" title="正常"></span></if></td>
		      <td><a href="{:U('Film/fedit',array('id'=>$v['id']))}">编辑</a><if condition="$v['isdel'] eq 0"> / <a class="resdel" refurl="{:U('Film/delete',array('id'=>$v['id']))}">删除</a></if></td>
	        </tr>
	        </volist>
      </table>
    </div>
    <div class="page">{$page}</div>
</div>
<script type="text/javascript">
	$(function(){
		$("a.resdel").each(function(index, element) {
			var t = $(this);
			t.click(function(){
				var r=confirm("想好！确定要删除吗？");
				if (r==true){
					var refurl = $(this).attr('refurl');
					location.href = refurl;
				}else{
					return false;
				}
			})
		});
	})
</script>
</body>
</html>
